package net.lovedna.data.messages {
	import net.lovedna.data.Message;

	import flash.utils.ByteArray;

	/**
	 * @author lee
	 */
	public class MessageError extends Message {
		public var code:int;
		public var msg:String;
		public function MessageError() {
			super();
		}

		override public function decode(data : ByteArray) : void {
			code=data.readByte();
			msg=data.readUTF();
			trace("出错了",code+":"+msg);
		}
		override public function toString() : String {
			return "MessageError[code="+code+",msg="+msg+"]";
		}
	}
}
